var casper = require("casper").create({
	clientScript: [
		'includes/jquery.js',
		'includes/underscore.js'
	],
	pageSettings: {
		loadImages: false,
		loadPlugins: false
	},
	verbose:true,
	logLevel: "debug"
});

casper.options.waitTimeout = 1000;
casper.start('https://www.baidu.com', function() {
	casper.echo(this.title);
});
casper.thenOpen('http://coffee-script.org/', function() {
	casper.echo(this.title);
});
casper.thenOpen('https://www.sublimetext.com/docs/3/indentation.html', function() {
	casper.echo(this.title);
});
casper.back();
casper.run(function() {
	console.log(this.getCurrentUrl());
	casper.exit(); 
});